﻿namespace FactoryMethod
{
    internal class IdCard:Product
    {
        private string owner;
        public IdCard(string owner)
        {
            Console.WriteLine($"制作{owner}的ID卡");
            this.owner = owner;
        }

        public override void Use()
        {
            Console.WriteLine($"使用{owner}的ID卡");
        }

        public string GetOwner() 
        {
            return owner;
        }
    }
}
